home *** CD-ROM | disk | FTP | other *** search
- /*
- The canonical Internet Config interface is defined in Pascal. These headers have
- not been thoroughly tested. If there is a conflict between these headers and the
- Pascal interfaces, the Pascal should take precedence.
- */
-
- /* ///////////////////////////////////////////////////////////////////////////////// */
-
- #ifndef __ICTYPES__
- #define __ICTYPES__
-
- #ifndef __TYPES__
- #include <Types.h>
- #endif
-
- /* ///////////////////////////////////////////////////////////////////////////////// */
-
- #if defined(powerc) || defined (__powerc)
- #pragma options align=mac68k
- #endif
-
- enum {
- icPrefNotFoundErr = -666, /* preference not found (duh!) */
- icPermErr = -667, /* cannot set preference */
- icPrefDataErr = -668, /* problem with preference data */
- icInternalErr = -669, /* hmm, this is not good */
- icTruncatedErr = -670, /* more data was present than was returned */
- icNoMoreWritersErr = -671 /* you cannot begin a write session because someone else is already doing it */
- };
-
- enum {
- ICattr_no_change = 0xFFFFFFFFL, /* supply this to ICSetPref to tell it not to change the attributes */
- ICattr_locked_bit = 0, /* bits in the preference attributes */
- ICattr_locked_mask = 0x00000001L /* masks for the above */
- };
-
- #define ICfiletype 'ICAp'
- #define ICcreator 'ICAp'
-
- #define ICdefault_file_name "\pInternet Preferences" /* default file name, for internal use, overridden by a component resource */
-
- enum {
- ICdefault_file_name_ID = 1024 /* ID of resource in component file */
- };
-
- struct ICDirSpec { /* a record that specifies a folder */
- short vRefNum;
- long dirID;
- };
- typedef struct ICDirSpec ICDirSpec;
-
- typedef ICDirSpec ICDirSpecArray[4]; /* an array of the above */
- typedef ICDirSpecArray *ICDirSpecArrayPtr; /* a pointer to that array */
-
- typedef long ICAttr; /* type for preference attributes */
- typedef long ICError; /* type for error codes */
- typedef Ptr ICInstance; /* opaque type for preference reference */
- enum {
- icNoPerm = 0,
- icReadOnlyPerm = 1,
- icReadWritePerm = 2
- };
- typedef unsigned char ICPerm;
-
- #if defined(powerc) || defined(__powerc)
- #pragma options align=reset
- #endif
-
- #endif
-